import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
import 'package:personinfo/widgets/common/IconText.dart';

import '../../utils/commonUtil.dart';

class TipsWindown  {
  dialog(context){
    return showModalBottomSheet(
        context: context,
        builder: (BuildContext context){
          return Container(
            padding: const EdgeInsets.fromLTRB(20, 10, 20, 10),
            width: CommonUtil.screenWidth(context).width,
            color: Theme.of(context).colorScheme.onPrimary,
            child: const Column(
              children: [
                SizedBox(height: 40,),
                Flex(
                  direction: Axis.horizontal,
                  mainAxisAlignment: MainAxisAlignment.spaceAround,
                  children: [
                    IconText(icon: Icons.photo_camera, text: "拍照"),
                    IconText(icon: Icons.search, text: "寻车"),
                  ],
                )
              ],
            ),
          );
        }
    );
  }

}

TipsWindown tipsWindown =  TipsWindown();